// 车险状态配置
import powerFilter from '@/components/ivew_conf/power/power_filter'
import carFormStore from '../../store/car_form';

const commonBtns = ['back', 'setStatus']

const carStatus:stateConf[] = [

    {
        label: '新建',
        key: 'created',
        color: '#ff893a',
        formBtns: ['save', 'carSubmitExamine'],
        component: 'formEdit',
    },
    {
        label:'暂存',
        key: 'saved',
        color: '#ffd83b',
        formBtns: ['save', 'carSubmitExamine'],
        component: 'formEdit',
    },
    {
        label:'计费',
        key: 'charging',
        color: '#d8ff3b',
        formBtns: ['save', 'carSubmitExamine'],
        component: 'formEdit',
    },
    {
        label: '申请核保',
        key: 'applicationAudit',
        component: 'formEdit',
        formBtns: ['carRevokeSubmit', 'carExaminePass', 'carExamineReject'],
        color: '#89ff3b',
    },
    {
        label: '核保中',
        key: 'underwirting',
        color: '#6aff4c',
        formBtns: [],
        component: 'formReadonly',
    },
    {
        label: '人工核保',
        key: 'manualReview',
        color: '#3bff89',
        formBtns: ['carRevokeSubmit', 'carExaminePass', 'carExamineReject'],
        component: 'formReadonly',
        
    },
    {
        label: '撤回核保',
        key: 'withdrawalUnderwriting',
        color: '#3bffd8',
        formBtns: ['save', 'carSubmitExamine'],
        component: 'formEdit',
    },
    {
        label: '核保通过',
        key: 'throunghUnderwriting',
        color: '#3bd8ff',
        formBtns: ['carSubmitPlay'],
        component: 'formReadonly',
    },
    {
        label: '申请缴费',
        key: 'applicationPay',
        color: '#3b89ff',
        formBtns: ['carExaminePlay'],
        component: 'formReadonly'
    },
    {
        label:'待缴费',
        key: 'waitingPay',
        color: '#3b3bff',
        formBtns: ['carPay'],
        component: 'formReadonly'
    },
    {
        label: '转账',
        key: 'transferAccounts',
        color: '#893bff',
        formBtns: ['carAlreadyPaid'],
        component: 'formReadonly',
    },
    {
        label: '已缴费',
        key:'pay',
        color: '#d83bff',
        formBtns: ['carAlreadyPaid'],
        component: 'formReadonly'
    },
    
    {
        label: '刷出金额',
        key: 'payCach',
        color: '#ff3bd8',
        formBtns: ['carIndia'],
        component: 'formReadonly'
    },
    {
        label: '已集印',
        key: 'print',
        color: '#ff3b89',
        formBtns: ['carIntimidate'],
        component: 'formReadonly'
    },
    {
        label: '已打单',
        key: 'intimidate',
        color: '#ff3b3b',
        formBtns: ['carTransitionBusiness'],
        component: 'formReadonly'
        
    },
    {
        label: '已转业务',
        key: 'transferBusiness',
        color: '#cdcdcd',
        formBtns:[],
        component: 'formReadonly'
    }
    
    
];

carStatus.forEach(item =>{
    item.formBtns.unshift(...commonBtns)
})


export default carStatus